/*******************************************************************************
 * Copyright (C) 2016. Tripint Information Technology Co., Ltd. All rights reserved. *
 * Authors:lirichen
 * File:DiscussDataService.java
 * This software, including documentation, is protected by copyright controlled
 * by Tripint Information Technology Co., Ltd. All rights are reserved.
 ******************************************************************************/

package com.taorenqi.data.requestmsgtoken;


import com.taorenqi.data.common.BasePageableResponse;
import com.taorenqi.data.common.BaseResponse;
import com.taorenqi.data.entity.login.CodeDataEntity;
import com.taorenqi.data.entity.login.LoginEntity;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by lirichen on 16/9/12.
 */
public interface RegisterDataService {


    //注册
    @FormUrlEncoded
    @POST("regist")
    Observable<BaseResponse<BasePageableResponse<LoginEntity>>> postRegister(
            @Field("mobile") String mobile,
            @Field("pwd") String password,
            @Field("vcode") String vcode,
            @Field("spreadCode") String spreadCode,
            @Field("device") String device,
            @Field("sign") String sign,
            @Field("isqy") int isqy
    );

    //修改密码
    @FormUrlEncoded
    @POST("editPass")
    Observable<BaseResponse<BasePageableResponse<CodeDataEntity>>> postModifyPwd(
            @Field("mobile") String mobile,
            @Field("password") String password,
            @Field("vcode") String vcode,
            @Field("sign") String sign
    );

}
